//帮助创建action
import axios from 'axios';

const changePanelData = (result) => ({
    type: 'panel_data',
    panelList: result.panelList
});

export const  getPanel = () => {
    return (dispatch) => {
        axios.get('/api/homeProjectDetail.json').then((res) => {
            const result = res.data;
            dispatch(changePanelData(result));
        })
    }
};
